#ifndef LOCALSERVERMANAGE_H
#define LOCALSERVERMANAGE_H

#include "AbstractManage.h"

class LocalServerManage : public AbstractManage
{
	Q_OBJECT

public:
	LocalServerManage(const int &handleMaxThreadCount, QObject * parent = 0);

	~LocalServerManage();

	bool listen(const QString &name);

private:
	bool isRunning();

	bool onStart();

	void onFinish();

private:
	QPointer< QLocalServer> localServer_;

	QString listenName_;
};

#endif // LOCALSERVERMANAGE_H
